package com.yg.service;

import com.yg.config.result.R;
import com.yg.entity.readAndWriteTemplates.TeacherRead;
import com.yg.entity.singleEntity.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.FileInputStream;

/**
 * <p>
 * 对应sheet01和其他表，此表为教师表 服务类
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherService extends IService<Teacher> {

    R teacherLogin(Teacher teacher);

    //excel录入
    R readExcel(FileInputStream fileInputStream);

    //excel导出
    R writeExcel(HttpServletResponse response, TeacherRead condition, String vipByJwtToken, String teacherIdByJwtToken);

    //查询教师所有信息
    R selectAllTeacherInfo(int current, int limit, String vipByJwtToken, String teacherIdByJwtToken);

    //条件查询
    R teacherConditionalQuery(String s, int current, int limit, String vipByJwtToken, String teacherIdByJwtToken);

    //更新教师信息
    R updateTeacherInfo(String s);

    //删除教师
    R deleteTeacherById(String id);

    //添加教师信息
    R insertTeacherInfo(TeacherRead teacherRead);

}
